package com.tjbklx1.zk.zookeeper.createSession;

import java.io.IOException;

import org.apache.zookeeper.ZooKeeper;

public class CreateSession {
	
	private static ZooKeeper zooKeeper;
	
	public static void main(String[] args) throws IOException, InterruptedException {
		
		zooKeeper= new ZooKeeper("127.0.0.1:2181", 5000, new MyWatcher());
		System.out.println(zooKeeper.getState());
		Thread.sleep(Integer.MAX_VALUE);
		
	}
}
